package com.sztx.pay.center.dataaccess.dao.mysql;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sztx.pay.center.dataaccess.domain.CallbackNotifyDO;
import com.sztx.pay.center.dataaccess.entity.QueryCallback;
import com.sztx.se.dataaccess.mysql.BaseMysqlDAO;
import com.sztx.se.dataaccess.mysql.config.PageQuery;

public interface CallbackNotifyMysqlDAO extends BaseMysqlDAO<CallbackNotifyDO> {
    

    Integer save(CallbackNotifyDO callbackNotifyDO);
	  
	int update(CallbackNotifyDO callbackNotifyDO);
    
	CallbackNotifyDO findByOrderId(@Param("orderId") String orderId,@Param("orderType") int orderType);
	
	List<CallbackNotifyDO> findByNotifyTime(@Param("startNotifyTime") String startNotifyTime);
	
	int updateState(@Param("listUpdateState") List<CallbackNotifyDO> callbackNotifyDO);
	
	int countCallback(QueryCallback query);
	
	List<CallbackNotifyDO> findCallback(@Param("callback") QueryCallback query, @Param("pageQuery") PageQuery pageQuery);

}